/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const tableRouter = {
  path: '/report',
  component: Layout,
  redirect: '/report/index',
  name: 'report',
  meta: {
    title: '数据录入',
    icon: 'table'
  },
  children: [
    {
      path: 'meeting',
      component: () => import('@/views/report/meeting'),
      name: 'meeting',
      meta: { title: '早会管理', icon: 'table' }
    },
    {
      path: 'briefing',
      component: () => import('@/views/report/briefing'),
      name: 'briefing',
      meta: { title: '早会简报', icon: 'table' }
    },
    {
      path: 'Production',
      component: () => import('@/views/report/Production'),
      name: 'Production',
      meta: { title: '排产管理', icon: 'table' }
    },
    {
      path: 'motion',
      component: () => import('@/views/report/motion'),
      name: 'motion',
      meta: { title: '稼动率', icon: 'table' }
    },
    {
      path: 'loss',
      component: () => import('@/views/report/loss'),
      name: 'loss',
      meta: { title: '产能损失', icon: 'table' }
    },
    {
      path: 'shards',
      component: () => import('@/views/report/shards'),
      name: 'shards',
      meta: { title: '碎片率', icon: 'table' }
    },
    // {
    //   path: 'Fragmentation',
    //   component: () => import('@/views/report/Fragmentation'),
    //   name: 'Fragmentation',
    //   meta: { title: '碎片率统计', icon: 'table' }
    // },
    {
      path: 'Cascade',
      component: () => import('@/views/report/Cascade'),
      name: 'Cascade',
      meta: { title: '串返率', icon: 'table' }
    },
    {
      path: 'Stacking',
      component: () => import('@/views/report/Stacking'),
      name: 'Stacking',
      meta: { title: '叠返率', icon: 'table' }
    },
    {
      path: 'Yield',
      component: () => import('@/views/report/Yield'),
      name: 'Yield',
      meta: { title: '良率', icon: 'table' }
    },
    {
      path: 'bom',
      component: () => import('@/views/report/bom'),
      name: 'bom',
      meta: { title: '物料损耗', icon: 'table' }
    },
    {
      path: 'cost',
      component: () => import('@/views/report/cost'),
      name: 'cost',
      meta: { title: '成本统计', icon: 'table' }
    }
    // {
    //   path: 'table',
    //   component: () => import('@/views/report/table'),
    //   name: 'table',
    //   meta: { title: '报表', icon: 'table' }
    // }
  ]
}
export default tableRouter
